package com._21cn.product.web.validator;

import com._21cn.product.entity.Cate;
import com._21cn.framework.utils.StringUtil;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("cateValidator")
public class CateValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return Cate.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        Cate obj = (Cate)target;
        //TODO
    }
}